const userHomeRoutes = {
  path: "/user",
  meta: {
    showHeaderSider: true,
  },
  component: () => import("@/views/Square/index.vue"),
  children: [
    {
      path: "homepagesquare",
      component: () => import("@/views/Square/HomeSquare/index.vue"),
    },
    // AI+X训练营
    {
      path: "training",
      name: "training",
      component: () => import("@/views/Activity/AI+XTrainingCamp/index.vue"),
    },
    // AI+智慧教育
    {
      path: "learningNew",
      children: [
        {
          path: "skill-tree",
          name: "skill-tree",
          meta: {
            showHome: true,
          },
          component: () => import("@/views/Square/LearningSquare/SkillTree/home/index.vue"),
          children: [
            {
              path: ":id",
              name: "skill-tree-details",
              meta: {
                showHome: false,
              },
              component: () => import("@/views/Square/LearningSquare/SkillTree/details/index.vue"),
            },
          ],
        },
        {
          path: "course",
          name: "course",
          meta: {
            showHome: true,
          },
          component: () => import("@/views/Square/LearningSquare/Course/home/index.vue"),
          children: [
            {
              path: ":courseId/:folderId",
              name: "course-details",
              meta: {
                showHome: false,
              },
              component: () => import("@/views/Square/LearningSquare/Course/details/index.vue"),
              // component: () => import("@/views/Square/LearningSquare/Course/details/index.vue"),
            },
          ],
        },
        // {
        //   path: "practice",
        //   name: "practice",
        //   meta: {
        //     showHome: true,
        //   },
        //   component: () => import("@/views/Square/PracticeNew/index.vue"),
        // },
      ],
    },
    {
      path: "practice",
      meta: {
        showHeaderSider: true,
        showHome: true,
      },
      component: () => import("@/views/Square/PracticeSquare/home/index.vue"),
      children: [
        {
          path: "details",
          name: "practice-details",
          meta: {
            showHeaderSider: false,
            showHome: false,
          },
          component: () => import("@/views/Square/PracticeSquare/details/index.vue"),
        },
      ],
    },
  ],
}

export default userHomeRoutes
